package com.ruoyi.laiwu.domain.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 数据同步配置业务对象 sync_config
 *
 * @author ruoyi
 * @date 2023-12-11
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SyncConfigBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = {EditGroup.class })
    private Long id;

    /**
     * 接口地址
     */
    @NotBlank(message = "接口地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;

    /**
     * 全限定类名
     */
    @NotBlank(message = "全限定类名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String modelClass;

    /**
     * 开始时间
     */
    @NotNull(message = "开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    @DateTimeFormat(pattern = "HH:mm:ss")
    @JsonFormat(pattern = "HH:mm:ss")
    private LocalTime starTime;

    /**
     * 同步日期
     */
    private LocalDate syncDate;

    /**
     * 备注
     */
    private String remark;
    private String mapperName;

    private String status;



}
